package com.itcast.security.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.itcast.common.model.dto.request.SetmealQueryReqDTO;
import com.itcast.common.model.dto.response.SetmealResDTO;
import com.itcast.security.mapper.SetmealMapper;
import com.itcast.security.model.Setmeal;
import com.itcast.security.service.ISetmealService;
import com.jzo2o.common.model.PageResult;
import com.jzo2o.mysql.utils.PageHelperUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
* <p>
* setmeal Service 接口实现
* </p>
*
* @author Administrator
* @since 2024-11-05 17:30:10
*/
@Service
@Transactional
@Slf4j
public class SetmealServiceImpl extends ServiceImpl<SetmealMapper, Setmeal> implements ISetmealService {


    @Override
    public PageResult<SetmealResDTO> querySetmealCategoryList(SetmealQueryReqDTO setmealQueryReqDTO) {
        return PageHelperUtils.selectPage(setmealQueryReqDTO,
                () -> baseMapper.querySetmealList(setmealQueryReqDTO));
    }
}